//
//  ZGSBookCaseColCell.m
//  MapleLeaf
//
//  Created by dllo on 15/12/5.
//  Copyright © 2015年 AntennaBabyTeam. All rights reserved.
//

#import "ZGSBookCaseColCell.h"
#define WIDTHC [UIScreen mainScreen].bounds.size.width
#define HEIGHTC [UIScreen mainScreen].bounds.size.height

@implementation ZGSBookCaseColCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, (WIDTHC - 42) / 3, 171 * HEIGHTC / 667)];
    self.bgView.layer.borderWidth = 1.5;
    self.bgView.layer.borderColor = [[UIColor colorWithRed:0.871f green:0.871f blue:0.871f alpha:1.00f] CGColor];
    [self.contentView addSubview:self.bgView];
    
    self.picView = [[UIImageView alloc] init];
    [self.bgView addSubview:self.picView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(7 * WIDTHC / 375, 135 * HEIGHTC / 667, (WIDTHC - 42) / 3 - 5, 20 * HEIGHTC / 667)];
    self.titleLabel.font = [UIFont systemFontOfSize:14];
    [self.bgView addSubview:self.titleLabel];
    
    self.sumNumber = [[UILabel alloc] initWithFrame:CGRectMake(7 * WIDTHC / 375, 155 * HEIGHTC / 667, (WIDTHC - 42) / 3 - 5, 15 * HEIGHTC / 667)];
    self.sumNumber.font = [UIFont systemFontOfSize:13];
    self.sumNumber.textColor = [UIColor colorWithRed:0.776f green:0.776f blue:0.776f alpha:1.00f];
    [self.bgView addSubview:self.sumNumber];
}


@end
